body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-color: #282c34;
    padding: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.main-container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.server-info-panel {
    width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.server-info-panel h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #282c34;
}

.info-item {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.info-value {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 5px;
    word-break: break-all;
    border: 1px solid #dee2e6;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message {
    margin-bottom: 15px;
    text-align: left;
}

.message.user {
    text-align: right;
}

.message-content {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 70%;
    word-wrap: break-word;
}

/* Markdown styles */
.markdown-body {
    text-align: left;
    max-width: 100%;
}

.markdown-body pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
}

.markdown-body code {
    background-color: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.markdown-body p {
    margin: 0.5em 0;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 2em;
    margin: 0.5em 0;
}

.markdown-body blockquote {
    border-left: 4px solid #dfe2e5;
    padding-left: 1em;
    margin: 0.5em 0;
    color: #6a737d;
}

.user .message-content {
    background-color: #007bff;
    color: white;
}

.assistant .message-content {
    background-color: #e9ecef;
    color: #212529;
}

.message.thinking .message-content {
    background-color: #fff3cd;
    color: #856404;
    font-style: italic;
}

.message-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.message-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.message-form button:hover {
    background-color: #0056b3;
}

.message-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
} 